/*
* This is require Rico 1.1.2
* 
*/
var Panels = Class.create();
Panels.prototype = {
 initialize: function (){
 },
 initRoundCorner: function(){
    new Rico.Effect.Round("div", 'panel');
 }
}

Event.observe(window, 'load', new Panels().initRoundCorner);

var myrules = {
	'div.panel .panel_header' : function(element){
	    var eles = element.parentNode.getElementsByTagName('DIV');
	    //alert(eles);
	      for (var i=0;i< eles.length;i++){
	      if (Element.hasClassName(eles[i],'panel_content')){
	          element.onclick = function(){ 
	              Element.toggle(eles[i]);
	          }
	      }
	    }
		
	}
};

Behaviour.register(myrules);
